<!-- Icones -->
<div class="row-fluid">
    <div class="span2 action-btn round-all">
        <a href="<?php echo $this->url('sisesporte-admin', array('controller' => 'profissao', 'action' => 'new')) ?>" title="Cadastrar">
            <div><i class="icon-pencil"></i></div>
            <div><strong>Cadastrar</strong></div>
        </a>
    </div>
</div>
<!-- Icones -->
<!-- Table -->
<div class="row-fluid">      
  <div class="span12">
           <!-- Portlet: Browser Usage Graph -->
       <div class="box" id="box-0">
        <h4 class="box-header round-top">Relatório Profissões
            <a class="box-btn" title="close"><i class="icon-remove"></i></a>
            <a class="box-btn" title="toggle"><i class="icon-minus"></i></a>     
            <a class="box-btn" title="config" data-toggle="modal" href="#box-config-modal"><i class="icon-cog"></i></a>
        </h4>         
        <div class="box-container-toggle">
            <div class="box-content">
               <table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered bootstrap-datatable" id="datatable">
                    <thead>
                        <tr>
                            <th>ID</th>
                            <th>Nome</th>
                            <th>Status</th>
                            <th>Ações</th>
                        </tr>
                    </thead>
                    <tbody>
                      <?php foreach($this->data as $entity): ?>
                      <tr>
                          <td class="center"><?php echo $entity->getSqProfissao(); ?></td>
                          <td class="center"><?php echo $entity->getNoProfissao(); ?></td>
                          <td class="center">
                              <span class="badge <?php echo ($entity->getStAtivo()==1)?"badge-success":"" ?>">
                                  <?php echo ($entity->getStAtivo()==1)?"Ativo":"Inativo";?>
                              </span>
                          </td>
                          <td class="center">
                              <a class="btn btn-info" href="<?php echo $this->url('sisesporte-admin-interna',
                    array('controller'=>'profissao','action'=>'edit','id'=>$entity->getSqProfissao())); ?>">
                                  <i class="icon-edit icon-white"></i>
                                  Editar
                              </a>
                              <a class="btn btn-danger" value="<?php echo $entity->getSqProfissao() ?>" id="btnDelete" href="#">
                                  <i class="icon-trash icon-white"></i>
                                  Deletar
                              </a>
                          </td>
                      </tr>
                      <?php endforeach; ?>
                    </tbody>
                </table>
            </div>
        </div>
      </div>
  </div>
</div>

<script src="/js/sisesporte-admin/profissao/delete.js"></script>